package model.seguranca;

import java.security.Principal;
import java.util.Set;

public class Usuario implements Principal {
	
	private String name;
	private Set roles;
	
	public Usuario(String name){
		this.name = name;
	}

	@Override
	public String getName() {
		return name;
	}
	
	public Set getRoles(){
		return roles;
	}
	
	public void setRoles(Set roles){
		if (roles == null){
			this.roles = roles;
		}
	}

}
